disableSerialization;

_n = _this select 0;

/*
if (isnil "countvalidunite") then {countvalidunite=1;};
countvalidunite=countvalidunite+1;
hint format["%1",countvalidunite];
*/

console_valid_unite = lbCurSel 10306;

_unitclass=lbText [10306, console_valid_unite]; 

//hint _unitclass;

if (_n == 0) then 
{

			nom_console_valid_unite = _unitclass;
			console_unit_unite = _unitclass;
			
			publicvariable "console_valid_unite";
			publicvariable "console_unit_unite";
			publicvariable "nom_console_valid_unite";
			
      		
			
     
};


if (!(isnil "Unitsave") and (Unitsavewait>2))then {lbSetCurSel [10306, Unitsave];Unitsavewait=0;Unitsave=nil;};  
Unitsavewait=Unitsavewait+1;

If (true) ExitWith {};
